Redux Observable Ajax

Redux Observable Ajax

#react #redux-observable #rxjs

If you're using redux-observable you may want to use it's built in methods for sending HTTP requests asyncronously.

If you want a more familiar HTTP interface, see [[Redux Observable fetch]].

I'm using The One API for my data. I have a mapper function which switches from _id to id.

Note: * see [[Redux Observable Ajax Default Header Hack]] for setting the authorization token for all ajax methods.

Here's the data mapper:

We can then consume getCharacters in an Epic:

Referred in

Redux Observable Ajax